model {
	name "midicube"
	modelfile "objects/colorcube.lwo"
	materials {
		glow {
			color cubes_cubebaseglow
		}
		border {
			color cubes_cubeborder
		}
	}
}

model {
	name "m_cube_road"
	modelfile "objects/scene6_tri.lwo"
	materials {
		glow {
			color glow
		}
		stone {
			color stone
		}
		road {
			color road
		}
	}
}


group {
	name "run_cubes"

	scene {
		prio 0
		name "s_cubes"
		file "scenes/scene7_cubes_v021.lws"

		starttime 0
	}

	camera {
		prio 10
		transform "s_cubes.camera"
		nearplane 0.1
		fov 55
	}

	midisync {
		name "cubesync"
		file "beep.mid"
	}

	midicubes {
		pingoffset (0.0 6.0 0.0)
		midisync "cubesync"
		arrayscene "s_cubes"
		arraypath "cubespath"
		cubemodel "midicube"
		cubescale 1.75
		timeshift -0.370
		midistarttime 0.0
		midiendtime 13.0

		colors {
			(0.5 0.2 0.1 1.0)
			(0.1 0.5 0.2 1.0)
			(0.1 0.2 0.5 1.0)
			(0.5 0.2 0.5 1.0)
			(0.5 0.5 0.2 1.0)
			(0.2 0.5 0.5 1.0)
		}
	}

	destructoroad {
		sceneobj "s_cubes"
		lwobject "slide"
		numsegs 800
		cubewidth 1.0
		cubeheight 0.5
		accamount 10.0
		destructoffset 1000.0
		colordyncube slide_roaddyn
		colorfixcube slide_roadfix
	}

	object {
		model "m_cube_road"
		transform "s_cubes.scene6_modo"
	}

	object {
		name "hexlandscape"
		transform "s_cubes.scene5-greets_tri"
		model "m_scene6_hexlandscape"
	}

	linemesh {
		meshfile "objects/buckyball-sub18_wire.lwo"
		transform "s_cubes.gubbe"
		color background_linemesh
		numtravelers 100
	}

	linemesh {
		prio 110
		meshfile "objects/scene5-greets_wire_v002.lwo"
		transform "s_cubes.scene5-greets_tri"
		color landscape_wire
	}

	cracklepath {
		texture "t_cracklepathtexture"
		color crackle
		sceneobjects {
			//cubespath "cracklepath1"
			//cubespath "cracklepath2"
			//cubespath "cracklepath3"
			//cubespath "cracklepath4"
			// Along the whole path
			s_cubes "cracklepath5"
		}
	}

	bones {
	    mesh "m_robot_md5mesh"
	    shadermesh "m_robot_mesh"
		layer0 "a_run" "globaltimer.localtime" 1
		layer1 "a_wakeup" "globaltimer.localtime" "s_cubes.wakeblend"
		layer2 "a_slide" "globaltimer.localtime" "s_cubes.slideblend"
		scale 0.1
		rotation (0 -0.25 0)
		transform "s_cubes.gubbe"
	}
}

